package com.swinw.asumall.search.vo;

import com.swinw.common.to.SkuEsModel;
import lombok.Data;

import java.util.List;

@Data
public class SearchResult {

    //查询到所有商品的信息
    List<SkuEsModel> products;

    //分页信息
    private Integer pageNum;
    private Long total;
    private Integer totalPages;
    private List<Integer> pageList;

    //商品中涉及的品牌
    private List<BrandVO> brands;

    //商品中涉及的品牌分类
    private List<CatalogVo> catalogs;

    //商品中涉及的销售属性
    private List<AttrVo> attrs;

    /**
     * 查询的结果所有涉及到的品牌
     */
    @Data
    public static class BrandVO{
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    /**
     * 三级分类信息
     */
    @Data
    public static class CatalogVo{
        private Long catalogId;
        private String catalogName;
    }

    /**
     * 查询结果所有涉及的属性信息
     */
    @Data
    public static class AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }
}
